/**
 * 
 */
package com.orange.handler.impl;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.orange.dbhelp.page.Page;
import com.orange.handler.AuthQuestionnaireService;
import com.orange.handler.AuthSchoolService;
import com.orange.modules.bean.SchoolItemBean;
import com.orange.modules.bean.expert.ExpertTaskBean;
import com.orange.modules.dao.AuthQuestionnaireRepository;
import com.orange.modules.dao.school.AuthSchoolRepository;
import com.orange.modules.entity.expert.AuthQuestionnaire;
import com.orange.modules.entity.expert.AuthSchoolQuestionnaire;
import com.orange.modules.entity.school.AuthSchool;

/**
 * @author gaogs
 *
 *         2016-10-16
 */
@Service
public class AuthQuestionnaireServiceImpl implements AuthQuestionnaireService {

	@Autowired
	private AuthQuestionnaireRepository authQuestionnaireRepository;

	@Override
	public AuthSchoolQuestionnaire AuthSchoolQuestionnaire(String schoolId)throws SQLException {
		AuthSchoolQuestionnaire aq = authQuestionnaireRepository.AuthSchoolQuestionnaire(schoolId);
		return aq;
	}
	
	@Override
	public AuthQuestionnaire queryAuthQuestionnaireInfoBypid(String pid)throws SQLException {
		AuthQuestionnaire aq = authQuestionnaireRepository.queryAuthQuestionnaireInfoBypid(pid);
		return aq;
	}

	@Override
	public void updateAuthSchoolInfo(AuthQuestionnaire aq) throws SQLException {
		authQuestionnaireRepository.updateAuthSchoolInfo(aq);
	}
	
	@Override
	public Page<AuthSchoolQuestionnaire> queryAuthQuestionnairePage(Map<String, String> map) throws SQLException{
		Page<AuthSchoolQuestionnaire> a = authQuestionnaireRepository.queryAuthQuestionnairePage(map);
		return a;
	}

	@Override
	public AuthSchoolQuestionnaire queryAuthSchoolQuestionnaireBySchoolId(
			String schoolId) throws SQLException {
		AuthSchoolQuestionnaire sq = authQuestionnaireRepository.queryAuthSchoolQuestionnaireBySchoolId(schoolId);
		return sq;
	}

}
